package com.example.jasonrpc.registry;

import com.example.jasonrpc.proto.Peer;

import java.util.List;

/**
 * 服务类及主机地址
 */
public class RegistryDirectory {
    private String serviceClass;
    private List<Peer> peers;

    public RegistryDirectory() {
    }

    public RegistryDirectory(List<Peer> peers) {
        this.peers = peers;
    }

    public String getServiceClass() {
        return serviceClass;
    }

    public void setServiceClass(String serviceClass) {
        this.serviceClass = serviceClass;
    }

    public List<Peer> getPeers() {
        return peers;
    }

    public void setPeers(List<Peer> peers) {
        this.peers = peers;
    }
}
